#Boa:Frame:Frame1

import wx
import sys
#-*- coding:UTF-8 -*-

def create(parent):
    return Frame1(parent)

[wxID_FRAME1, wxID_FRAME1BTN_RESET, wxID_FRAME1BTN_START, wxID_FRAME1CB_1, 
 wxID_FRAME1CB_2, wxID_FRAME1CB_3, wxID_FRAME1CHOICE_COM1, 
 wxID_FRAME1CHOICE_COM2, wxID_FRAME1CHOICE_COM3, wxID_FRAME1LISTCTRL1, 
 wxID_FRAME1PANEL1, wxID_FRAME1STATICLINE1, wxID_FRAME1STATICLINE2, 
 wxID_FRAME1STATICTEXT1, wxID_FRAME1STATICTEXT2, wxID_FRAME1STATICTEXT4, 
 wxID_FRAME1TC_NUM1_END, wxID_FRAME1TC_NUM1_START, wxID_FRAME1TC_NUM2_END, 
 wxID_FRAME1TC_NUM2_START, wxID_FRAME1TC_NUM3_END, wxID_FRAME1TC_NUM3_START, 
] = [wx.NewId() for _init_ctrls in range(22)]

data = [("1", u'\u6d3e\u4ef6', u'\u7533\u901a', "768685345059", u'\u5f20\u5bb6\u53e3\u8d64\u57ce\u53bf\u005d\u0020\u7b7e\u6536\u4eba\u662f\u0020\u62cd\u7167\u7b7e\u6536\u005d\u0020\u0020\u003c\u003d\u003d\u003d\u003d\u0020\u005b\u005b\u897f\u5b89\u592a\u5143\u8def\u005d\u0020\u897f\u5b89\u592a\u5143\u8def\u0028\u897f\u5b89\u592a\u5143\u8def\u0029\u0020\u5df2\u6536\u4ef6\u0020\u8fdb\u5165\u516c\u53f8\u5206\u6361')]
class Frame1(wx.Frame):
    def _init_coll_listCtrl1_Columns(self, parent):
        # generated method, don't edit

        parent.InsertColumn(col=0, format=wx.LIST_FORMAT_RIGHT,
              heading=u'\u5e8f\u53f7', width=-1)
        parent.InsertColumn(col=1, format=wx.LIST_FORMAT_CENTRE,
              heading=u'\u72b6\u6001', width=-1)
        parent.InsertColumn(col=2, format=wx.LIST_FORMAT_CENTRE,
              heading=u'\u5feb\u9012', width=-1)
        parent.InsertColumn(col=3, format=wx.LIST_FORMAT_CENTRE,
              heading=u'\u5355\u53f7', width=-1)
        parent.InsertColumn(col=4, format=wx.LIST_FORMAT_CENTRE,
              heading=u'\u4fe1\u606f', width=-1)

    def add_list_row(self, data_row):
        index = self.list.InsertStringItem(sys.maxint, data_row[0])
        for col, text in enumerate(data_row[1:]):
            self.list.SetStringItem(index, col + 1, text)
    
    def add_list_rows(self, data_rows):
        for row in data_rows:
            self.add_list_row(row)
            
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Frame.__init__(self, id=wxID_FRAME1, name='', parent=prnt,
              pos=wx.Point(508, 163), size=wx.Size(726, 487),
              style=wx.DEFAULT_FRAME_STYLE, title='Frame1')
        self.SetClientSize(wx.Size(718, 453))

        self.btn_reset = wx.Button(id=wxID_FRAME1BTN_RESET,
              label=u'\u91cd\u7f6e', name=u'btn_reset', parent=self,
              pos=wx.Point(256, 16), size=wx.Size(75, 24), style=0)
        self.btn_reset.Bind(wx.EVT_BUTTON, self.OnBtn_resetButton,
              id=wxID_FRAME1BTN_RESET)

        self.btn_start = wx.Button(id=wxID_FRAME1BTN_START,
              label=u'\u5f00\u59cb', name=u'btn_start', parent=self,
              pos=wx.Point(392, 16), size=wx.Size(75, 24), style=0)
        self.btn_start.Bind(wx.EVT_BUTTON, self.OnBtn_startButton,
              id=wxID_FRAME1BTN_START)

        self.staticLine1 = wx.StaticLine(id=wxID_FRAME1STATICLINE1,
              name='staticLine1', parent=self, pos=wx.Point(0, 8),
              size=wx.Size(720, 2), style=0)

        self.staticLine2 = wx.StaticLine(id=wxID_FRAME1STATICLINE2,
              name='staticLine2', parent=self, pos=wx.Point(0, 48),
              size=wx.Size(720, 2), style=0)

        self.panel1 = wx.Panel(id=wxID_FRAME1PANEL1, name='panel1', parent=self,
              pos=wx.Point(0, 48), size=wx.Size(720, 128),
              style=wx.TAB_TRAVERSAL)

        self.staticText1 = wx.StaticText(id=wxID_FRAME1STATICTEXT1,
              label=u'\u5feb\u9012\u516c\u53f8', name='staticText1',
              parent=self.panel1, pos=wx.Point(88, 8), size=wx.Size(48, 14),
              style=0)

        self.staticText2 = wx.StaticText(id=wxID_FRAME1STATICTEXT2,
              label=u'\u5355\u53f7-\u5f00\u59cb', name='staticText2',
              parent=self.panel1, pos=wx.Point(328, 8), size=wx.Size(52, 14),
              style=0)

        self.staticText4 = wx.StaticText(id=wxID_FRAME1STATICTEXT4,
              label=u'\u5355\u53f7-\u7ed3\u675f', name='staticText4',
              parent=self.panel1, pos=wx.Point(544, 8), size=wx.Size(52, 14),
              style=0)

        self.cb_1 = wx.CheckBox(id=wxID_FRAME1CB_1, label=u'', name=u'cb_1',
              parent=self.panel1, pos=wx.Point(24, 32), size=wx.Size(16, 14),
              style=0)
        self.cb_1.SetValue(True)
        self.cb_1.Bind(wx.EVT_CHECKBOX, self.onCB1_click, id=wxID_FRAME1CB_1)

        self.choice_com1 = wx.Choice(choices=[], id=wxID_FRAME1CHOICE_COM1,
              name=u'choice_com1', parent=self.panel1, pos=wx.Point(56, 24),
              size=wx.Size(130, 22), style=0)

        self.tc_num1_start = wx.TextCtrl(id=wxID_FRAME1TC_NUM1_START,
              name=u'tc_num1_start', parent=self.panel1, pos=wx.Point(272, 24),
              size=wx.Size(152, 22), style=0, value=u'768166348814')

        self.tc_num1_end = wx.TextCtrl(id=wxID_FRAME1TC_NUM1_END,
              name=u'tc_num1_end', parent=self.panel1, pos=wx.Point(504, 24),
              size=wx.Size(144, 22), style=0, value=u'768166348814')

        self.choice_com2 = wx.Choice(choices=[], id=wxID_FRAME1CHOICE_COM2,
              name=u'choice_com2', parent=self.panel1, pos=wx.Point(56, 56),
              size=wx.Size(130, 22), style=0)

        self.tc_num2_start = wx.TextCtrl(id=wxID_FRAME1TC_NUM2_START,
              name=u'tc_num2_start', parent=self.panel1, pos=wx.Point(272, 56),
              size=wx.Size(152, 22), style=0, value=u'')

        self.tc_num2_end = wx.TextCtrl(id=wxID_FRAME1TC_NUM2_END,
              name=u'tc_num2_end', parent=self.panel1, pos=wx.Point(504, 56),
              size=wx.Size(144, 22), style=0, value=u'')

        self.cb_2 = wx.CheckBox(id=wxID_FRAME1CB_2, label=u'', name=u'cb_2',
              parent=self.panel1, pos=wx.Point(24, 64), size=wx.Size(16, 14),
              style=0)
        self.cb_2.SetValue(False)
        self.cb_2.Bind(wx.EVT_CHECKBOX, self.onCB2_click, id=wxID_FRAME1CB_2)

        self.cb_3 = wx.CheckBox(id=wxID_FRAME1CB_3, label=u'', name=u'cb_3',
              parent=self.panel1, pos=wx.Point(24, 96), size=wx.Size(16, 14),
              style=0)
        self.cb_3.SetValue(True)
        self.cb_3.Bind(wx.EVT_CHECKBOX, self.onCB3_click, id=wxID_FRAME1CB_3)

        self.choice_com3 = wx.Choice(choices=[], id=wxID_FRAME1CHOICE_COM3,
              name=u'choice_com3', parent=self.panel1, pos=wx.Point(56, 88),
              size=wx.Size(130, 22), style=0)

        self.tc_num3_start = wx.TextCtrl(id=wxID_FRAME1TC_NUM3_START,
              name=u'tc_num3_start', parent=self.panel1, pos=wx.Point(272, 88),
              size=wx.Size(152, 22), style=0, value=u'')

        self.tc_num3_end = wx.TextCtrl(id=wxID_FRAME1TC_NUM3_END,
              name=u'tc_num3_end', parent=self.panel1, pos=wx.Point(504, 88),
              size=wx.Size(144, 22), style=0, value=u'')

        self.list = wx.ListCtrl(id=wxID_FRAME1LISTCTRL1, name='list',
              parent=self, pos=wx.Point(0, 192), size=wx.Size(712, 256),
              style=wx.LC_REPORT)
        self._init_coll_listCtrl1_Columns(self.list)
        self.add_list_rows(data)
    
    def __init__(self, parent):        
        self._init_ctrls(parent)   
    
    def OnItemSelecte(self, event):
        event.Skip()

    def OnButton2Button(self, event):
        event.Skip()

    def OnCheckBox2Checkbox(self, event):
        event.Skip()

    def onCB1_click(self, event):
        event.Skip()

    def onCB2_click(self, event):
        event.Skip()

    def onCB3_click(self, event):
        event.Skip()

    def OnBtn_resetButton(self, event):
        print ""
        event.Skip()

    def OnBtn_startButton(self, event):
        event.Skip()
